@charset "UTF-8";
/* CSS Document for FAQ Page */

/* Root Variables for Consistent Styling */
:root {
    --primary-color: #007f5f; /* Rich green */
    --secondary-color: #ffcc00; /* Golden accent */
    --tertiary-color: #1b4332; /* Deep contrast */
    --background-light: #f8f9fa; /* Soft background */
    --background-dark: #081c15; /* Dark contrast */
    --text-color: #ffffff; /* Light text */
    --text-dark: #1b4332; /* Dark text */
    --cta-hover: #ffb700;
    --faq-bg: #ffffff;
    --faq-border: #e0e0e0;
    --faq-hover-bg: #f1f1f1;
    --faq-question-color: var(--primary-color);
    --faq-answer-color: #555;
}

/* Universal Reset for Clean Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body & General Styles */
body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer stays at bottom */
}

/* Navigation Bar (Copied/Adapted from index-style.css) */
.navigation {
    background: var(--primary-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    height: 60px;
    z-index: 1000;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    /* *** ADDED: Padding to create hover bridge *** */
    padding-bottom: 10px; /* Adjust as needed */
    margin-bottom: -10px; /* Counteract the padding visually */
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dropbtn img {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--tertiary-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    border-radius: 8px;
    left: 0;
    /* *** ADJUSTED: Ensure it's directly below the button area *** */
    top: 100%; /* Position it right below the .dropbtn */
    margin-top: 0; /* Remove any conflicting top margin */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--tertiary-color);
    font-weight: bold;
}

/* *** Keep content visible when hovering EITHER dropdown container OR content *** */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Logo (Copied/Adapted from index-style.css) */
#QB-logo {
    font-size: 2em;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    padding-right: 20px;
}

/* --- (Rest of your faq-style.css continues below) --- */

/* Main Content Area */
.content-container {
    flex: 1; /* Allow content to grow and push footer down */
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: var(--faq-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.header-container {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.header-container h1 {
    font-size: 2.5rem;
    color: var(--tertiary-color);
    margin-bottom: 10px;
}

.header-container p {
    font-size: 1.1rem;
    color: var(--faq-answer-color);
}

/* FAQ Section Styling */
.faq-section {
    margin: 0 auto;
}

.faq-item {
    background-color: var(--faq-bg);
    border: 1px solid var(--faq-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* Needed for smooth animation */
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Push icon to the right */
    align-items: center; /* Vertically center content */
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--faq-question-color);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--faq-hover-bg);
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow in Chrome/Safari */
}

/* Custom Arrow/Icon */
.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
    margin-left: 15px; /* Space between text and icon */
}

.faq-item[open] > .faq-question::after {
    transform: rotate(45deg);
    content: '−'; /* Change to minus when open */
}

.faq-answer {
    padding: 0px 25px 20px 25px; /* Add padding only when open */
    color: var(--faq-answer-color);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid var(--faq-border);
    /* Animation */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.4s ease-in-out,
                padding 0.4s ease; /* Animate padding */
}

/* Animation for opening the details */
.faq-item[open] > .faq-answer {
    max-height: 1000px; /* Set a large enough max-height */
    opacity: 1;
    padding: 20px 25px; /* Apply padding when open */
}

.faq-answer p {
    margin-bottom: 10px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer (Copied/Adapted from index-style.css) */
.foot-bar {
    display: flex;
    justify-content: space-around; /* Use space-around for better distribution */
    align-items: center;
    background: var(--primary-color);
    padding: 15px 20px; /* Slightly more padding */
    color: var(--text-color);
    text-align: center;
    margin-top: 30px; /* Add margin to separate from content */
}

.foot-bar a {
    display: inline-block; /* Ensure images within links behave well */
    line-height: 0; /* Prevent extra space around images */
}


.foot-bar img {
    vertical-align: middle; /* Align images nicely */
    transition: transform 0.2s ease;
}

.foot-bar a:hover img {
    transform: scale(1.1); /* Slight grow effect on hover */
}

.foot-bar p {
    margin: 0 10px; /* Add horizontal margin to text */
    font-size: 0.9rem;
}

.foot-bar p img {
     width: 18px; /* Adjust size if needed */
     height: 18px;
     margin: 0 5px; /* Space around the small pig icon */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 2rem;
    }
    .faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 0 20px 15px 20px;
    }
     .faq-item[open] > .faq-answer {
        padding: 15px 20px;
    }
     .foot-bar {
		display: flex;
		align-items: center;
		justify-content: space-around;
        padding: 15px;
    }
    .foot-bar a, .foot-bar p {
        margin-bottom: 10px;
    }
    
	.foot-bar > * {
		margin-left: 5px;
		margin-right: 5px;
	}
}

@media (max-width: 480px) {
    #QB-logo {
        font-size: 1.5em; /* Smaller logo on very small screens */
    }
     .header-container h1 {
        font-size: 1.8rem;
    }
     .header-container p {
        font-size: 1rem;
    }
     .faq-question {
        font-size: 1rem;
    }
    .faq-question::after {
        font-size: 1.5rem;
    }
     .faq-answer {
        font-size: 0.9rem;
    }
}
